package com.xur.springboot.mapper;

import com.xur.springboot.entity.Companies;
import com.xur.springboot.entity.User;
import com.xur.springboot.entity.employee;
import com.xur.springboot.entity.user_details;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface EmployeeMapper {
    //查询所有简历信息
    List<employee> queryEmployee();

    //根据id查询简历信息
    List<employee> queryEEdetailById(int id);

    //根据user_id查询简历信息
    List<employee> queryEEdetailByUser_Id(int user_id);
    // 插入单条员工信息（返回受影响行数）
    int insertEmployee(employee employee);

    // 批量插入（可选）
    int batchInsert(List<employee> employees);

    //根据user_id插入简历信息
    int insertEmployeeByUserId(employee employee);

    // 修改简历
    int updateEmployee(employee employee);

}
